<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        用户名:<input type="text" v-model.trim="user.username"><br>
        密码:<input type="text" v-model.number=""user.password><br>
        性别:<input type="radio" value="male" name="gender" v-model="user.gender">男<br>
        <input type="radio" value="female" name="gender" v-model="user.gender">女<br>
        爱好:<input type="checkbox" value="a1" v-model="user.hobby">唱
        <input type="checkbox" value="a2" user.hobby>跳
        <input type="checkbox" value="a3" user.hobby>ra 
        <input type="checkbox" value="a4" user.hobby>篮球<br>
        地址:<select>
            <option value="d1">四川</option>
            <option value="d2">重庆</option>
            <option value="d3">贵州</option>
        </select><br>
        介绍:<textarea cols="30" rows="10"></textarea><br>
        <br>
        <button @>提交</button>
        提交内容:<textarea cols="30" rows="10">{{user}}</textarea>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                user: {
                    hobby: []
                }
            },
            methods: {

            },
            watch: {

            }
        })
    </script>
</body>

</html>